from appium.webdriver.common.mobileby import MobileBy
from app_wechat_po.base.base_page import BasePage


class PersonalInfoPage(BasePage):
    # 个人信息页面
    def goto_settings_page(self):
        # 3.进入个人信息页面
        self.find_and_click(MobileBy.XPATH, "//*[@text='个人信息']/../../../../following-sibling::*[1]")

        from app_wechat_po.page.personal_settings_page import PersonalSettinsPage
        return PersonalSettinsPage(self.driver)